package com.niit.session11;

//员工类
public class Employee extends Object{
//	第一步：给所有属性加上private修饰符
	private String name;
	private String gender;
	private int age;
	private double money;

	public void working() {
		System.out.println(name + "开始工作了");
	}

//	第二步：生成构造方法
	public Employee() {
		super();
	}

	public Employee(String name, String gender, int age, double money) {
		super();
		this.name = name;
		this.gender = gender;
		this.age = age;
		this.money = money;
	}

//第三步：创建get和set方法

	public String getGender() {
		return gender;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

}
